﻿// /************************************************************************/
// /*@Company           : 重庆虫儿飞科技有限公司
// /*@Author            : work1024
// /*@FrameWork         : NET6/7/8 + SqlSugar
// /*@Company Web       : www.coflys.com
// /*@Description       :
// /************************************************************************/

namespace Neto.Core.CoreServices;

/// <summary>
///     文件上传业务输入
/// </summary>
public class FileUploadSetting
{
    /// <summary>
    ///     构造函数：FileUploadSetting
    /// </summary>
    /// <param name="uploadConfig">文件上传配置，必须</param>
    /// <param name="catetoryType">文件类别，(默认 = 0,logo=1),暂时就2种随着业务增加</param>
    /// <param name="isOpen">是否公开，默认false</param>
    public FileUploadSetting(WebUploadConfig uploadConfig, SysFileCatetoryType catetoryType = SysFileCatetoryType.默认,
        bool isOpen = false)
    {
        UploadConfig = uploadConfig;
        CatetoryType = catetoryType;
        IsOpen = isOpen;
    }

    /// <summary>
    ///     文件上传配置
    /// </summary>
    public WebUploadConfig UploadConfig { get; set; }

    /// <summary>
    ///     文件类别，(默认 = 0,logo=1)
    /// </summary>
    public SysFileCatetoryType CatetoryType { get; set; }

    ///// <summary>
    ///// 文件存储类型
    ///// </summary>
    //public FileStoLocType FileStoLocType { get; set; }

    /// <summary>
    ///     是否开放文件
    ///     开放的文件，任何人都可以访问读取
    /// </summary>
    public bool IsOpen { get; set; }

    /// <summary>
    ///     标签，多个英文逗号隔开
    /// </summary>
    public string Tags { get; set; }

    /// <summary>
    ///     顺序
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    ///     编码
    /// </summary>
    public string Code { get; set; }


    /// <summary>
    ///     来源数据ID
    /// </summary>
    public string SourceDataId { get; set; }

    /// <summary>
    ///     来源数据类型
    ///     例如：数据库表明、自定义类型名
    /// </summary>
    public string SourceDataType { get; set; }

    /// <summary>
    ///     上级
    /// </summary>
    public long Pid { get; set; }
}